import PropTypes from 'prop-types'
import React, { memo } from 'react'
import { LongforWrapper } from './style'

const LongforItem = memo((props) => {
    const { itemData } = props
    return (
        <LongforWrapper>
            <div className="inner">
                <img className="cover" src={itemData.picture_url} alt="" />
                <div className="bg-cover"></div>
                <div className="info">
                    <div className="city">{itemData.city}</div>
                    <div className="price">均价{itemData.price}</div>
                </div>
            </div>
        </LongforWrapper>
    )
})

LongforItem.propTypes = {
    itemData: PropTypes.object
}

export default LongforItem